package com.workingpub.commons.domain;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * 普通领域对象基类
 * 
 * @author taoping
 *
 */
@MappedSuperclass
public abstract class AssignedDomainGeneral extends AssignedIdentifier implements DomainGeneral<String> {
	private static final long serialVersionUID = 1L;

	@Column(name = "name")
	protected String name;

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return new StringBuilder("id : " + id).append("\tname : " + name).toString();
	}
}
